#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int getSum(int a, int b) {
        int c = 0;
        int d = 0;
        while (true)
        {
            c = a;
            a = a ^ b;
            if ((c & b) != 0)
                b = (c & b) << 1;
            else
                break;
        }
        return a;
    }
};